//
//  Common.swift
//  CZVVeiBo
//
//  Created by smile on 2017/7/29.
//  Copyright © 2017年 itcast. All rights reserved.
//
// 相当于OC中的pch文件
import UIKit

// 通知名
// 切换根控制器
let CZSWITCHROOTVCNOTI = NSNotification.Name(rawValue: "CZSWITCHROOTVCNOTI")
// 表情键盘发送通知
let CZEMOTICONBUTTONSNOTI = NSNotification.Name(rawValue: "CZEMOTICONBUTTONSNOTI")
// 表情键盘中删除按钮通知
let CZEMOTICONDELETEBUTTONNOTI = NSNotification.Name(rawValue: "CZEMOTICONDELETEBUTTONNOTI")

// 微博相关的应用信息
let CZAppKey = "1495040264"
let CZAppSecret = "d184ce723267b07c8bfd9b5222f3a3f3"
let CZRedirect_uri = "http://www.baidu.com"
// 微博测试账号密码
let CZWeiboName = "rangyuan05788697@163.com"
let CZWeiboPasswd = "bbb333"
//let CZWeiboName = "jubeisi0516873@163.com"
//let CZWeiboPasswd = "958794"


// 屏幕宽度和高度
let CZSCREENW = UIScreen.main.bounds.width
let CZSCREENH = UIScreen.main.bounds.height

// RGB颜色
func RGB(red:CGFloat, green:CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}
// 随机颜色
func randomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return RGB(red: r, green: g, blue: b)
}

// 主题颜色
let CZAPPThemeColor = UIColor.orange


